import request from '.';

// 获取好友
const getFriend = (params?: any) => {
  return request({
    method: 'post',
    url: '/friend/friendList',
    data: params,
  });
};

// 获取聊天信息
const getChatMsg = (params?: any) => {
  return request({
    method: 'post',
    url: '/friend/chatMsg',
    data: params,
  });
};

export { getFriend, getChatMsg };
